import request from "@/utils/request";
export function add(data) {
  return request({
    url: "rest/api/manager/system",
    method: "post",
    data
  });
}

export function del(ids) {
  return request({
    url: "rest/api/manager/system/del",
    method: "post",
    data: ids
  });
}

export function queryEnable() {
  return request({
    url: "rest/api/manager/system/builder",
    method: "get"
  });
}

export function edit(data) {
  return request({
    url: "rest/api/manager/system/update",
    method: "post",
    data
  });
}

/**
 * 查询全部可用接入系统信息
 * @returns {*}
 */
export function queryAllSystem() {
  return request({
    url: "rest/api/manager/system/all",
    method: "get"
  });
}
export default { add, edit, del, queryEnable };
